package cn.com.api.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiDianPing;
import cn.com.api.requestpage.DianPingPage;
import cn.com.util.PageInfo;

@Service
public interface ApiDianPingService {

	public List<ApiDianPing> searchDianPingBySid(int c_sid);

	public void searchDianPingByGoodsid(Map<String, String> params, Map<String, Object> map);

	public void addDianPingToOrder(DianPingPage dianPingPage);

	public Map<String, Object> searchDianPingCountRateByGoodsid(Long c_goodsid);

	/** 商品评价信息 评分，总数 满意数 不满意数量 */
	public void searchDianPingSumInfoByGoodsid(Map<String, String> params, Map<String, Object> map);

	/** ---------------商铺端-用户评价 ---------------------------- */
	/** 商品评价信息 评分，一星-数量(*星:数量) */
	public void searchDianPingSumInfoByShopid(Map<String, String> params, Map<String, Object> map);

	/** 商品评价列表 */
	public void searchDianPingByShopid(Map<String, String> params, Map<String, Object> map);

	/** 商铺端回复评价 */
	public void replyOrderEvaluate(Map<String, String> params, Map<String, Object> map);

	/** 获取点评数量 */
	public Integer getDianPingSize(HashMap map);

	/** 商铺的所有评价 */
	public void searchAllDianPingByShopid(Map<String, String> params, Map<String, Object> map);

	public Integer getAllDianPingSize(HashMap map);

	public ApiDianPing searchDianPingByCid(int c_id);

	public void replyDianPing(ApiDianPing apiDianPing);

	public void addDianPing(ApiDianPing apiDianPing);

	public void updDianPing(ApiDianPing apiDianPing);

	public ApiDianPing getDianPingByCondition(String orderNum, String productId);

	public void batchInsert(List<ApiDianPing> list);

	public List<Map<String, Object>> selectOrderDianPing(Map<String, Object> map, PageInfo pageInfo);

	public void logicDelDianPing(String dpId);

	public List<Map<String, Object>> getDianPingPageByGoodId(int parseInt, PageInfo pageInfo);

}
